import requests
from config import *

class BusinessApi():
    def __init__(self):
        self.shop_info_url = SHOP_INFO_URL
        self.address_url = ADDRESS_INFO_URL
        self.order_url = ORDER_URL
        # self.headers =
        pass
    # 获得商品的页面信息
    def get_shop_info(self, id):
        url = self.shop_info_url.format(id)

        resp = requests.get(url)
        return resp
    # 获得地址信息
    def get_address_info(self):
        url = self.address_url
        headers = {
            'token': TOKEN
        }
        return requests.get(url, headers=headers)



business_api = BusinessApi()
